home *** CD-ROM | disk | FTP | other *** search
- Path: Ra.MsState.Edu!mcc3
- From: M Christopher Cotting <mcc3@Ra.MsState.Edu>
- Newsgroups: comp.lang.c
- Subject: RS232 & Strings
- Date: Tue, 26 Mar 1996 14:50:57 -0600
- Organization: Mississippi State University
- Message-ID: <Pine.SUN.3.91.960326144705.10920A-100000@Ra.MsState.Edu>
- NNTP-Posting-Host: ra.msstate.edu
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
- Howdy!
-
- I have run into some problems and was wondering if anyone out there could
- help. I am writing a program for MS DOS 6.22 in Borland C/C++ v. 4.52
- and have hit a wall. I need to be able to receive a string that is ten
- char. long (starting w/ a + or - and ending with a <CR> ) from an
- external device that is hooked to a PC RS232 port. I have gotten the
- port initialized, etc. can receive some data from it, but I need to be
- able to receive a string from the device. Using inport and casting the
- integer value received from the register as a char & then peicing it all
- together did not work, and I was wondering if there was a way to receive
- a string from the port.
-
- Any help would be appreciated.
-
- Thanks in advance,
- Chris Cotting
-
- mcc3@ra.msstate.edu
-
-
-